package com.jflm.service.impl;



import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jflm.domain.RuleData;
import com.jflm.mapper.RuleDataMapper;
import com.jflm.service.IRuleDataService;

/**
 * @Title: ruledate
 * @Description: ruledate
 * @author xusai
 * @date 2017-10-09 16:51:21
 * @version V1.0
 *
 */
@Service("ruleDataService")
public class RuleDataServiceImpl implements IRuleDataService{
	
	@Autowired
	private RuleDataMapper ruleDataMapper;

	@Override
	public List<RuleData> findList(RuleData ruleData) throws Exception {
		return ruleDataMapper.findList(ruleData);
	}

	@Override
	public int add(RuleData ruleData) throws Exception{
		return ruleDataMapper.adddata(ruleData);
	}
	

	@Override
	public int update(RuleData ruleData) throws Exception {
		return ruleDataMapper.update(ruleData);
	}

	@Override
	public RuleData findOne(String id) throws Exception {
		return ruleDataMapper.findOne(id);
	}

	@Override
	public int delete1(RuleData ruleData) throws Exception {
		return ruleDataMapper.deleteById(ruleData);
	}

	@Override
	public int add2(RuleData ruleData) {
		
		return ruleDataMapper.add2(ruleData);
	}

	


	
	

	/*@Override
	public RuleData delete(String id) throws Exception {
		return ruleDataMapper.delete(id);
	}*/

	

}
